from crack_rotation import *
from crack_reverse_rotation import *

# Rotation test
print "  ### Testing rotation cipher"
key = 9
plaintext = "DEFEND THE EAST WALL OF THE CASTLE"
ciphertext = rotate_encrypt(plaintext,key)
print ciphertext
crack_rotation(ciphertext)


# Reverse rotation test
print "  ### Testing reverse rotation cipher"
key = 14
plaintext = "DEFEND THE EAST WALL OF THE CASTLE"
ciphertext = reverse_rotate_encrypt(plaintext,key)
print ciphertext
crack_reverse_rotation(ciphertext)


